
find_device4:     file format elf64-littleaarch64


Disassembly of section .init:

0000000000400668 <_init>:
  400668:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  40066c:	910003fd 	mov	x29, sp
  400670:	9400004e 	bl	4007a8 <call_weak_fn>
  400674:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400678:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400680 <.plt>:
  400680:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400684:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf4ec>
  400688:	f947fe11 	ldr	x17, [x16, #4088]
  40068c:	913fe210 	add	x16, x16, #0xff8
  400690:	d61f0220 	br	x17
  400694:	d503201f 	nop
  400698:	d503201f 	nop
  40069c:	d503201f 	nop

00000000004006a0 <strlen@plt>:
  4006a0:	b0000090 	adrp	x16, 411000 <strlen@GLIBC_2.17>
  4006a4:	f9400211 	ldr	x17, [x16]
  4006a8:	91000210 	add	x16, x16, #0x0
  4006ac:	d61f0220 	br	x17

00000000004006b0 <popen@plt>:
  4006b0:	b0000090 	adrp	x16, 411000 <strlen@GLIBC_2.17>
  4006b4:	f9400611 	ldr	x17, [x16, #8]
  4006b8:	91002210 	add	x16, x16, #0x8
  4006bc:	d61f0220 	br	x17

00000000004006c0 <__libc_start_main@plt>:
  4006c0:	b0000090 	adrp	x16, 411000 <strlen@GLIBC_2.17>
  4006c4:	f9400a11 	ldr	x17, [x16, #16]
  4006c8:	91004210 	add	x16, x16, #0x10
  4006cc:	d61f0220 	br	x17

00000000004006d0 <sleep@plt>:
  4006d0:	b0000090 	adrp	x16, 411000 <strlen@GLIBC_2.17>
  4006d4:	f9400e11 	ldr	x17, [x16, #24]
  4006d8:	91006210 	add	x16, x16, #0x18
  4006dc:	d61f0220 	br	x17

00000000004006e0 <__gmon_start__@plt>:
  4006e0:	b0000090 	adrp	x16, 411000 <strlen@GLIBC_2.17>
  4006e4:	f9401211 	ldr	x17, [x16, #32]
  4006e8:	91008210 	add	x16, x16, #0x20
  4006ec:	d61f0220 	br	x17

00000000004006f0 <abort@plt>:
  4006f0:	b0000090 	adrp	x16, 411000 <strlen@GLIBC_2.17>
  4006f4:	f9401611 	ldr	x17, [x16, #40]
  4006f8:	9100a210 	add	x16, x16, #0x28
  4006fc:	d61f0220 	br	x17

0000000000400700 <puts@plt>:
  400700:	b0000090 	adrp	x16, 411000 <strlen@GLIBC_2.17>
  400704:	f9401a11 	ldr	x17, [x16, #48]
  400708:	9100c210 	add	x16, x16, #0x30
  40070c:	d61f0220 	br	x17

0000000000400710 <strstr@plt>:
  400710:	b0000090 	adrp	x16, 411000 <strlen@GLIBC_2.17>
  400714:	f9401e11 	ldr	x17, [x16, #56]
  400718:	9100e210 	add	x16, x16, #0x38
  40071c:	d61f0220 	br	x17

0000000000400720 <strncpy@plt>:
  400720:	b0000090 	adrp	x16, 411000 <strlen@GLIBC_2.17>
  400724:	f9402211 	ldr	x17, [x16, #64]
  400728:	91010210 	add	x16, x16, #0x40
  40072c:	d61f0220 	br	x17

0000000000400730 <pclose@plt>:
  400730:	b0000090 	adrp	x16, 411000 <strlen@GLIBC_2.17>
  400734:	f9402611 	ldr	x17, [x16, #72]
  400738:	91012210 	add	x16, x16, #0x48
  40073c:	d61f0220 	br	x17

0000000000400740 <printf@plt>:
  400740:	b0000090 	adrp	x16, 411000 <strlen@GLIBC_2.17>
  400744:	f9402a11 	ldr	x17, [x16, #80]
  400748:	91014210 	add	x16, x16, #0x50
  40074c:	d61f0220 	br	x17

0000000000400750 <fgets@plt>:
  400750:	b0000090 	adrp	x16, 411000 <strlen@GLIBC_2.17>
  400754:	f9402e11 	ldr	x17, [x16, #88]
  400758:	91016210 	add	x16, x16, #0x58
  40075c:	d61f0220 	br	x17

Disassembly of section .text:

0000000000400760 <_start>:
  400760:	d280001d 	mov	x29, #0x0                   	// #0
  400764:	d280001e 	mov	x30, #0x0                   	// #0
  400768:	aa0003e5 	mov	x5, x0
  40076c:	f94003e1 	ldr	x1, [sp]
  400770:	910023e2 	add	x2, sp, #0x8
  400774:	910003e6 	mov	x6, sp
  400778:	580000c0 	ldr	x0, 400790 <_start+0x30>
  40077c:	580000e3 	ldr	x3, 400798 <_start+0x38>
  400780:	58000104 	ldr	x4, 4007a0 <_start+0x40>
  400784:	97ffffcf 	bl	4006c0 <__libc_start_main@plt>
  400788:	97ffffda 	bl	4006f0 <abort@plt>
  40078c:	00000000 	.inst	0x00000000 ; undefined
  400790:	00400994 	.word	0x00400994
  400794:	00000000 	.word	0x00000000
  400798:	004009b8 	.word	0x004009b8
  40079c:	00000000 	.word	0x00000000
  4007a0:	00400a38 	.word	0x00400a38
  4007a4:	00000000 	.word	0x00000000

00000000004007a8 <call_weak_fn>:
  4007a8:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf4ec>
  4007ac:	f947f000 	ldr	x0, [x0, #4064]
  4007b0:	b4000040 	cbz	x0, 4007b8 <call_weak_fn+0x10>
  4007b4:	17ffffcb 	b	4006e0 <__gmon_start__@plt>
  4007b8:	d65f03c0 	ret
  4007bc:	00000000 	.inst	0x00000000 ; undefined

00000000004007c0 <deregister_tm_clones>:
  4007c0:	b0000080 	adrp	x0, 411000 <strlen@GLIBC_2.17>
  4007c4:	9101c000 	add	x0, x0, #0x70
  4007c8:	b0000081 	adrp	x1, 411000 <strlen@GLIBC_2.17>
  4007cc:	9101c021 	add	x1, x1, #0x70
  4007d0:	eb00003f 	cmp	x1, x0
  4007d4:	540000a0 	b.eq	4007e8 <deregister_tm_clones+0x28>  // b.none
  4007d8:	90000001 	adrp	x1, 400000 <_init-0x668>
  4007dc:	f9452c21 	ldr	x1, [x1, #2648]
  4007e0:	b4000041 	cbz	x1, 4007e8 <deregister_tm_clones+0x28>
  4007e4:	d61f0020 	br	x1
  4007e8:	d65f03c0 	ret
  4007ec:	d503201f 	nop

00000000004007f0 <register_tm_clones>:
  4007f0:	b0000080 	adrp	x0, 411000 <strlen@GLIBC_2.17>
  4007f4:	9101c000 	add	x0, x0, #0x70
  4007f8:	b0000081 	adrp	x1, 411000 <strlen@GLIBC_2.17>
  4007fc:	9101c021 	add	x1, x1, #0x70
  400800:	cb000021 	sub	x1, x1, x0
  400804:	9343fc21 	asr	x1, x1, #3
  400808:	8b41fc21 	add	x1, x1, x1, lsr #63
  40080c:	9341fc21 	asr	x1, x1, #1
  400810:	b40000a1 	cbz	x1, 400824 <register_tm_clones+0x34>
  400814:	90000002 	adrp	x2, 400000 <_init-0x668>
  400818:	f9453042 	ldr	x2, [x2, #2656]
  40081c:	b4000042 	cbz	x2, 400824 <register_tm_clones+0x34>
  400820:	d61f0040 	br	x2
  400824:	d65f03c0 	ret

0000000000400828 <__do_global_dtors_aux>:
  400828:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  40082c:	910003fd 	mov	x29, sp
  400830:	f9000bf3 	str	x19, [sp, #16]
  400834:	b0000093 	adrp	x19, 411000 <strlen@GLIBC_2.17>
  400838:	3941c260 	ldrb	w0, [x19, #112]
  40083c:	35000080 	cbnz	w0, 40084c <__do_global_dtors_aux+0x24>
  400840:	97ffffe0 	bl	4007c0 <deregister_tm_clones>
  400844:	52800020 	mov	w0, #0x1                   	// #1
  400848:	3901c260 	strb	w0, [x19, #112]
  40084c:	f9400bf3 	ldr	x19, [sp, #16]
  400850:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400854:	d65f03c0 	ret

0000000000400858 <frame_dummy>:
  400858:	17ffffe6 	b	4007f0 <register_tm_clones>

000000000040085c <find_device>:
  40085c:	a9b57bfd 	stp	x29, x30, [sp, #-176]!
  400860:	910003fd 	mov	x29, sp
  400864:	f90057bf 	str	xzr, [x29, #168]
  400868:	b9001bbf 	str	wzr, [x29, #24]
  40086c:	90000000 	adrp	x0, 400000 <_init-0x668>
  400870:	9129a001 	add	x1, x0, #0xa68
  400874:	90000000 	adrp	x0, 400000 <_init-0x668>
  400878:	9129c000 	add	x0, x0, #0xa70
  40087c:	97ffff8d 	bl	4006b0 <popen@plt>
  400880:	f90053a0 	str	x0, [x29, #160]
  400884:	f94053a0 	ldr	x0, [x29, #160]
  400888:	f100001f 	cmp	x0, #0x0
  40088c:	540000c1 	b.ne	4008a4 <find_device+0x48>  // b.any
  400890:	90000000 	adrp	x0, 400000 <_init-0x668>
  400894:	912a0000 	add	x0, x0, #0xa80
  400898:	97ffffaa 	bl	400740 <printf@plt>
  40089c:	12800000 	mov	w0, #0xffffffff            	// #-1
  4008a0:	1400003b 	b	40098c <find_device+0x130>
  4008a4:	d503201f 	nop
  4008a8:	910083a0 	add	x0, x29, #0x20
  4008ac:	f94053a2 	ldr	x2, [x29, #160]
  4008b0:	52801001 	mov	w1, #0x80                  	// #128
  4008b4:	97ffffa7 	bl	400750 <fgets@plt>
  4008b8:	f100001f 	cmp	x0, #0x0
  4008bc:	54ffff61 	b.ne	4008a8 <find_device+0x4c>  // b.any
  4008c0:	90000000 	adrp	x0, 400000 <_init-0x668>
  4008c4:	912a6000 	add	x0, x0, #0xa98
  4008c8:	97ffff8e 	bl	400700 <puts@plt>
  4008cc:	910083a1 	add	x1, x29, #0x20
  4008d0:	90000000 	adrp	x0, 400000 <_init-0x668>
  4008d4:	912b0000 	add	x0, x0, #0xac0
  4008d8:	97ffff9a 	bl	400740 <printf@plt>
  4008dc:	910083a0 	add	x0, x29, #0x20
  4008e0:	97ffff70 	bl	4006a0 <strlen@plt>
  4008e4:	d1000400 	sub	x0, x0, #0x1
  4008e8:	910083a1 	add	x1, x29, #0x20
  4008ec:	38606820 	ldrb	w0, [x1, x0]
  4008f0:	7100281f 	cmp	w0, #0xa
  4008f4:	540000c1 	b.ne	40090c <find_device+0xb0>  // b.any
  4008f8:	910083a0 	add	x0, x29, #0x20
  4008fc:	97ffff69 	bl	4006a0 <strlen@plt>
  400900:	d1000400 	sub	x0, x0, #0x1
  400904:	910083a1 	add	x1, x29, #0x20
  400908:	3820683f 	strb	wzr, [x1, x0]
  40090c:	90000000 	adrp	x0, 400000 <_init-0x668>
  400910:	912b4000 	add	x0, x0, #0xad0
  400914:	97ffff7b 	bl	400700 <puts@plt>
  400918:	910083a1 	add	x1, x29, #0x20
  40091c:	90000000 	adrp	x0, 400000 <_init-0x668>
  400920:	912b0000 	add	x0, x0, #0xac0
  400924:	97ffff87 	bl	400740 <printf@plt>
  400928:	90000000 	adrp	x0, 400000 <_init-0x668>
  40092c:	912be001 	add	x1, x0, #0xaf8
  400930:	910083a0 	add	x0, x29, #0x20
  400934:	97ffff77 	bl	400710 <strstr@plt>
  400938:	f90057a0 	str	x0, [x29, #168]
  40093c:	f94057a0 	ldr	x0, [x29, #168]
  400940:	f100001f 	cmp	x0, #0x0
  400944:	54000220 	b.eq	400988 <find_device+0x12c>  // b.none
  400948:	90000000 	adrp	x0, 400000 <_init-0x668>
  40094c:	912c0000 	add	x0, x0, #0xb00
  400950:	f94057a1 	ldr	x1, [x29, #168]
  400954:	97ffff7b 	bl	400740 <printf@plt>
  400958:	910063a0 	add	x0, x29, #0x18
  40095c:	d2800062 	mov	x2, #0x3                   	// #3
  400960:	f94057a1 	ldr	x1, [x29, #168]
  400964:	97ffff6f 	bl	400720 <strncpy@plt>
  400968:	910063a1 	add	x1, x29, #0x18
  40096c:	90000000 	adrp	x0, 400000 <_init-0x668>
  400970:	912c2000 	add	x0, x0, #0xb08
  400974:	97ffff73 	bl	400740 <printf@plt>
  400978:	f94053a0 	ldr	x0, [x29, #160]
  40097c:	97ffff6d 	bl	400730 <pclose@plt>
  400980:	52800000 	mov	w0, #0x0                   	// #0
  400984:	14000002 	b	40098c <find_device+0x130>
  400988:	12800000 	mov	w0, #0xffffffff            	// #-1
  40098c:	a8cb7bfd 	ldp	x29, x30, [sp], #176
  400990:	d65f03c0 	ret

0000000000400994 <main>:
  400994:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400998:	910003fd 	mov	x29, sp
  40099c:	b9001fa0 	str	w0, [x29, #28]
  4009a0:	f9000ba1 	str	x1, [x29, #16]
  4009a4:	97ffffae 	bl	40085c <find_device>
  4009a8:	52800020 	mov	w0, #0x1                   	// #1
  4009ac:	97ffff49 	bl	4006d0 <sleep@plt>
  4009b0:	17fffffd 	b	4009a4 <main+0x10>
  4009b4:	00000000 	.inst	0x00000000 ; undefined

00000000004009b8 <__libc_csu_init>:
  4009b8:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  4009bc:	910003fd 	mov	x29, sp
  4009c0:	a901d7f4 	stp	x20, x21, [sp, #24]
  4009c4:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf4ec>
  4009c8:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf4ec>
  4009cc:	91374294 	add	x20, x20, #0xdd0
  4009d0:	913722b5 	add	x21, x21, #0xdc8
  4009d4:	a902dff6 	stp	x22, x23, [sp, #40]
  4009d8:	cb150294 	sub	x20, x20, x21
  4009dc:	f9001ff8 	str	x24, [sp, #56]
  4009e0:	2a0003f6 	mov	w22, w0
  4009e4:	aa0103f7 	mov	x23, x1
  4009e8:	9343fe94 	asr	x20, x20, #3
  4009ec:	aa0203f8 	mov	x24, x2
  4009f0:	97ffff1e 	bl	400668 <_init>
  4009f4:	b4000194 	cbz	x20, 400a24 <__libc_csu_init+0x6c>
  4009f8:	f9000bb3 	str	x19, [x29, #16]
  4009fc:	d2800013 	mov	x19, #0x0                   	// #0
  400a00:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  400a04:	aa1803e2 	mov	x2, x24
  400a08:	aa1703e1 	mov	x1, x23
  400a0c:	2a1603e0 	mov	w0, w22
  400a10:	91000673 	add	x19, x19, #0x1
  400a14:	d63f0060 	blr	x3
  400a18:	eb13029f 	cmp	x20, x19
  400a1c:	54ffff21 	b.ne	400a00 <__libc_csu_init+0x48>  // b.any
  400a20:	f9400bb3 	ldr	x19, [x29, #16]
  400a24:	a941d7f4 	ldp	x20, x21, [sp, #24]
  400a28:	a942dff6 	ldp	x22, x23, [sp, #40]
  400a2c:	f9401ff8 	ldr	x24, [sp, #56]
  400a30:	a8c47bfd 	ldp	x29, x30, [sp], #64
  400a34:	d65f03c0 	ret

0000000000400a38 <__libc_csu_fini>:
  400a38:	d65f03c0 	ret

Disassembly of section .fini:

0000000000400a3c <_fini>:
  400a3c:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400a40:	910003fd 	mov	x29, sp
  400a44:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400a48:	d65f03c0 	ret
